From xfwahss/centos-stream9:v6ed5436b4793

RUN yum -y update && \
    yum -y install gcc gcc-c++ vim cmake make git openssh-server && \
    yum clean all
RUN ssh-keygen -A
RUN echo 'root:1234' | chpasswd
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
CMD ["/usr/sbin/sshd","-D"]
